<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>新闻资源</title>
<meta name="keywords" content="某某某有限公司">
<meta name="description" content="某某某有限公司">

<link href="css/main.css"  rel="stylesheet" />
<link href="css/style.css"  rel="stylesheet" />
<script src="js/jquery-1.8.3.min.js"  type="text/javascript"></script>
<script src="js/jquery.SuperSlide.2.1.1.js"></script>
<!--ie9以下调用-->
<!--[if lt IE 9]>
<script src="js/html5.js" ></script>
<script src="js/PIE.js" type="text/javascript"></script>
<![endif]-->

</head>
<body>
<!--头部-->
<header>
	<div class="beijing">
		<h2><a href="index.html" ><em><font color="white">徐州市物联网及泛在技术研究中心</font></em></a></h2>
		<ul>
			<li>
				<a class="menu_1 hover"  href="index.html" >返回首页</a>
			</li>
		</ul>
		<div class="clear"></div>		
	</div>
	<div class="clear"></div>
</header>

<div class="main_banner" style="margin-top: -500px;">

</div>
<!--主体-->
<div class="beijing1">
	<div class="qi_feng_yi">
		<h1 id="title"></h1>
		<p id="createTime"></p>
	</div>
	<div class="article" style=""></div>
</div>
</body>
<script type="text/javascript">
    function getQueryStringByName(name) {
        var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
        if (result == null || result.length < 1) {
            return "";
        }
        return result[1];
    }

    window.onload = function () {
        var id = getQueryStringByName("id");
        if (id == null) {
            alert("无数据!");
            return;
        }
        $.ajax({
            type: "GET",
            dataType: "json",
            url: '/selectNewsById/' + id,
            data: {},
            success: function (data) {
                if (data != null) {
                    $('.article').html(data.data.content);
                    $("#title").html(data.data.title);
                    $("#createTime").html("发布时间："+data.data.createTime+"&nbsp;&nbsp;责任编辑："+data.data.createName);
                }
                else {
                    alert("无数据!");
                }
            }
        });
    }
</script>
</html>

<script type="text/javascript" src="js/xmsz_common.js" ></script>
<!--[if IE 6]><script type="text/javascript" src="js/pngfix.js" ></script><![endif]-->
